-- GENERATED SPELL FOR [Warmage Calandra] --


function spell0_27173(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(17290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27173', 3000, 1)
end

function spell1_27173(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_27173', 0, 1)
end

function Sorts_27173(pUnit, Event)
local choix_sorts_27173 = math.random(0, 1)
if choix_sorts_27173 == 0 then
pUnit:RegisterEvent('spell0_27173', 1, 1)
end
if choix_sorts_27173 == 1 then
pUnit:RegisterEvent('spell1_27173', 1, 1)
end
end

function mob27173_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27173', math.random(1500, 3000), 1)
end

function mob27173_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27173_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27173_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27173, 1, 'mob27173_Action')
RegisterUnitEvent(27173, 2, 'mob27173_Leave')
RegisterUnitEvent(27173, 3, 'mob27173_Kill')
RegisterUnitEvent(27173, 4, 'mob27173_Die')
